<style lang="scss" type="text/scss">
body {
  > .el-container {
    position: fixed;
    width: 100%;
    height: 100%;
  }
}
.el-header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e6e6e6;
  .logo{
    display: inline-block;
    margin-top: 25px;
  }
}
.el-aside {
  .el-menu {
    height: 100%;
    .el-menu-item.is-active {
      background-color: rgb(255, 239, 240);
    }
  }
}
</style>
<template>
  <el-container>
    <el-header height="90px">
      <a class="logo" href="/"><img src="../assets/logo.png" /></a>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu :default-active="active" :router="true">
          <el-menu-item index="themes">
            <i class="el-icon-setting"></i>
            <span slot="title">主题设置</span>
          </el-menu-item>
          <el-menu-item index="booking">
            <i class="el-icon-goods"></i>
            <span slot="title">预定管理</span>
          </el-menu-item>
          <el-menu-item index="template">
            <i class="el-icon-share"></i>
            <span slot="title">模板设置</span>
          </el-menu-item>
          <el-menu-item index="business">
            <i class="el-icon-document"></i>
            <span slot="title">经营数据</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-main>
          <router-view/>
        </el-main>
        <!-- <el-footer>Footer</el-footer> -->
      </el-container>
    </el-container>
  </el-container>
</template>

<script>
export default {
  name: 'app',
  data() {
    return {
      active: this.$route.name
    };
  }
};
</script>
